package com.lcj.bff.driver.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@Schema(description = "分页查询消息列表表单")
public class SearchMessageByPageForm {

    @Schema(description = "用户ID")
    private Long userId;

    @Pattern(regexp = "^driver$|^mis$|^customer$|^customer_bill$",message = "identity内容不正确")
    @Schema(description = "用户身份")
    private String identity;

    @NotNull
    private Long start;

    @NotNull
    private Integer length;

}
